﻿using System;
using System.Threading.Tasks;

#nullable disable
namespace BeetleX.XRPC.Clients
{
    internal interface IAnyCompletionSource
    {
        void Success(object data);

        void Error(Exception error);

        void WaitResponse(Task<RPCPacket> task);

        ClientActionHandler ClientActionHandler { get; set; }

        Task GetTask();
    }
}
